#ifndef HASH_H__
#define HASH_H__

#define HASHLENGTH 7
#define KEYSIZE 128

typedef int Datatype;


typedef struct node_st
{
	char key[KEYSIZE];
	Datatype vaule;	
	struct node_st *next;
}node_st;

//索引数组类型
typedef struct HashMap
{
	node_st *first;
	node_st *last;
}HashMap;

HashMap arr[HASHLENGTH];

//哈希函数
int64_t Hash(char *key);

void hashmap_insert(char *key,Datatype value);

//创建
void hashmap_create();

//查找
int hashmap_find(char *key);

//打印
void hashmap_print();

//删除
void hashmap_delete(char *key);


#endif
